package com.dayu.recovery.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.dayu.common.annotation.Excel;
import com.dayu.common.core.domain.BaseEntity;

/**
 * 暂借登记对象 recovery_loan
 *
 * @author HK
 * @date 2021-04-16
 */
public class RecoveryLoan extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 暂借编号 */
    private Long loanId;

    /** 商品编码 */
    @Excel(name = "商品编码")
    private String goodsId;

    @Excel(name = "串号")
    private String goodsSn;
    @Excel(name = "机型")
    private String goodsName;
    @Excel(name = "规格")
    private String printing;

    /** 暂借人 */
    @Excel(name = "暂借人")
    private String loanName;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal loanPrice;

    /** 状态 */
    @Excel(name = "状态", readConverterExp = "1=借出中,2=结束")
    private Integer status;

    @Excel(name = "手机号")
    private String mobile;

    /** 创建者 */
    @Excel(name = "创建人")
    private String createBy;

    /** 创建时间 */
    @Excel(name = "创建时间", dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 备注 */
    @Excel(name = "备注")
    private String remark;

    public String getPrinting() {
        return printing;
    }

    public void setPrinting(String printing) {
        this.printing = printing;
    }

    @Override
    public String getCreateBy() {
        return createBy;
    }

    @Override
    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String getRemark() {
        return remark;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getGoodsSn() {
        return goodsSn;
    }

    public void setGoodsSn(String goodsSn) {
        this.goodsSn = goodsSn;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public void setLoanId(Long loanId)
    {
        this.loanId = loanId;
    }

    public Long getLoanId()
    {
        return loanId;
    }
    public void setGoodsId(String goodsId)
    {
        this.goodsId = goodsId;
    }

    public String getGoodsId()
    {
        return goodsId;
    }
    public void setLoanName(String loanName)
    {
        this.loanName = loanName;
    }

    public String getLoanName()
    {
        return loanName;
    }
    public void setLoanPrice(BigDecimal loanPrice)
    {
        this.loanPrice = loanPrice;
    }

    public BigDecimal getLoanPrice()
    {
        return loanPrice;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("loanId", getLoanId())
            .append("goodsId", getGoodsId())
            .append("loanName", getLoanName())
            .append("loanPrice", getLoanPrice())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("status", getStatus())
            .append("remark", getRemark())
            .toString();
    }
}
